local liance_viewas = fk.CreateSkill{
    name = "#wk_heg__liance_viewas",
}

Fk:loadTranslationTable{
    ["#wk_heg__liance_viewas"] = "连策",
}

liance_viewas:addEffect("viewas",{
  interaction = function(self, player)
      local names = {}
      local mark = player:getMark("wk_heg__liance-phase")
      for _, id in ipairs(Fk:getAllCardIds()) do
        local card = Fk:getCardById(id, true)
        if table.contains(mark, card.name) and card:isCommonTrick() then
          table.insertIfNeed(names, card.name)
        end
      end
      return UI.CardNameBox{choices = names}
    end,
  card_filter = Util.FalseFunc,
  view_as = function(self, cards)
    if not self.interaction.data then return end
    local card = Fk:cloneCard(self.interaction.data)
    return card
  end,
})

return liance_viewas